package com.xmg.model.message;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.xmg.model.Image;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Map;

/**
 * @author xmg
 * @Description 图片消息
 * @email 463364973@qq.com
 * <p>
 * Date:2019/4/5 17:16
 */
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@XStreamAlias("xml")
public class ImageMessage extends BaseMessage {

    /** 图片 */
    @Getter
    @Setter
    private Image image;

    public ImageMessage(Map<String, String> requestMap, String picUrl, Image  image) {
        super(requestMap);
        this.setMsgType("image");
        this.image = image;
    }
}
